package com.cm.caseManagement.dao;


import com.cm.caseManagement.pojo.entity.CmCaseWarning;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * 案件预警Mapper接口
 *
 * @author ruoyi
 * @date 2025-10-05
 */
@Mapper
public interface CmCaseWarningMapper
{
    /**
     * 查询案件预警
     *
     * @param id 案件预警主键
     * @return 案件预警
     */
    public CmCaseWarning selectCmCaseWarningById(Long id);

    /**
     * 查询案件预警列表
     *
     * @param cmCaseWarning 案件预警
     * @return 案件预警集合
     */
    public List<CmCaseWarning> selectCmCaseWarningList(CmCaseWarning cmCaseWarning);

    /**
     * 新增案件预警
     *
     * @param cmCaseWarning 案件预警
     * @return 结果
     */
    public int insertCmCaseWarning(CmCaseWarning cmCaseWarning);

    /**
     * 修改案件预警
     *
     * @param cmCaseWarning 案件预警
     * @return 结果
     */
    public int updateCmCaseWarning(CmCaseWarning cmCaseWarning);

    /**
     * 删除案件预警
     *
     * @param id 案件预警主键
     * @return 结果
     */
    public int deleteCmCaseWarningById(Long id);

    /**
     * 批量删除案件预警
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteCmCaseWarningByIds(Long[] ids);
}
